[INFO] cloning repository https://github.com/chirag0303/Rust-basics
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chirag0303/Rust-basics" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchirag0303%2FRust-basics", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchirag0303%2FRust-basics'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] ea27bbc64557cdc9c4640e3a429d11d1761c7d54
[INFO] fixing chirag0303/Rust-basics against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchirag0303%2FRust-basics" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/chirag0303/Rust-basics
[INFO] finished tweaking git repo https://github.com/chirag0303/Rust-basics
[INFO] tweaked toml for git repo https://github.com/chirag0303/Rust-basics written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/chirag0303/Rust-basics on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/chirag0303/Rust-basics already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 825b561d6454f9b55a73ebfdf8bc00939317efb97f4c86d0b5a056b36bf0af43
[INFO] running `Command { std: "docker" "start" "825b561d6454f9b55a73ebfdf8bc00939317efb97f4c86d0b5a056b36bf0af43", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "825b561d6454f9b55a73ebfdf8bc00939317efb97f4c86d0b5a056b36bf0af43" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "825b561d6454f9b55a73ebfdf8bc00939317efb97f4c86d0b5a056b36bf0af43", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "825b561d6454f9b55a73ebfdf8bc00939317efb97f4c86d0b5a056b36bf0af43" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]     Checking hello_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0601]: `main` function not found in crate `loops`
[INFO] [stdout]   --> examples/loops.rs:15:2
[INFO] [stdout]    |
[INFO] [stdout] 15 | }
[INFO] [stdout]    |  ^ consider adding a `main` function to `examples/loops.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `s3`
[INFO] [stdout]   --> examples/borrowing.rs:14:13
[INFO] [stdout]    |
[INFO] [stdout] 14 |         let s3 = s; // here, ownership is transferred
[INFO] [stdout]    |             ^^ help: if this is intentional, prefix it with an underscore: `_s3`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `j`
[INFO] [stdout]   --> examples/loops.rs:11:9
[INFO] [stdout]    |
[INFO] [stdout] 11 |     for j in 0..n {
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_j`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `hello_rust` (example "loops") due to 1 previous error; 1 warning emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0425]: cannot find function `printFoo` in module `my`
[INFO] [stdout]   --> examples/modules.rs:51:9
[INFO] [stdout]    |
[INFO] [stdout] 51 |     my::printFoo();
[INFO] [stdout]    |         ^^^^^^^^ not found in `my`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this function
[INFO] [stdout]    |
[INFO] [stdout]  3 + use crate::my::a::printFoo;
[INFO] [stdout]    |
[INFO] [stdout] help: if you import `printFoo`, refer to it directly
[INFO] [stdout]    |
[INFO] [stdout] 51 -     my::printFoo();
[INFO] [stdout] 51 +     printFoo();
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::num::ParseIntError`
[INFO] [stdout]  --> examples/vector.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::num::ParseIntError;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `hello_rust` (example "modules") due to 1 previous error
[INFO] [stdout] For more information about this error, try `rustc --explain E0425`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]  --> examples/vector.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 |     let v: Vec<i8> = Vec::new(); // an empty Vector
[INFO] [stdout]   |         ^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]  --> examples/ownership.rs:2:9
[INFO] [stdout]   |
[INFO] [stdout] 2 |     let i = 1; // This will be stoored in stack
[INFO] [stdout]   |         ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]  --> examples/ownership.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 |     let i = Box::new(1i32);
[INFO] [stdout]   |         ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: path statement drops value
[INFO] [stdout]   --> examples/ownership.rs:18:9
[INFO] [stdout]    |
[INFO] [stdout] 18 |         s;
[INFO] [stdout]    |         ^^ help: use `drop` to clarify the intent: `drop(s);`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(path_statements)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `z`
[INFO] [stdout]  --> examples/if_else.rs:4:9
[INFO] [stdout]   |
[INFO] [stdout] 4 |     let z: i32 = if x > 0 {
[INFO] [stdout]   |         ^ help: if this is intentional, prefix it with an underscore: `_z`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> examples/enum.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 22 |     let x: Option<i32> = Some(1); // Option can be used to check presence of a value if it presnt -> Some() if not -> None.
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> examples/enum.rs:23:9
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let x: Option<i32> = None; // Can be used in when accessing the elements of an array
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> examples/enum.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let x: Result<i32, String> = Ok(10);
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]   --> examples/enum.rs:29:9
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let x: Result<i32, String> = Err("Error in parsing".to_string());
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Play` is never constructed
[INFO] [stdout]  --> examples/enum.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | enum Command {
[INFO] [stdout]   |      ------- variant in this enum
[INFO] [stdout] 4 |     Play,
[INFO] [stdout]   |     ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `Command` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `black`
[INFO] [stdout]   --> examples/hashmap.rs:17:9
[INFO] [stdout]    |
[INFO] [stdout] 17 |     let black: &mut i32 = scores.entry("black".to_string()).or_insert(400); // if black not found then create with default value
[INFO] [stdout]    |         ^^^^^ help: if this is intentional, prefix it with an underscore: `_black`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "825b561d6454f9b55a73ebfdf8bc00939317efb97f4c86d0b5a056b36bf0af43", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "825b561d6454f9b55a73ebfdf8bc00939317efb97f4c86d0b5a056b36bf0af43", kill_on_drop: false }`
[INFO] [stdout] 825b561d6454f9b55a73ebfdf8bc00939317efb97f4c86d0b5a056b36bf0af43
